<%-- 
    Document   : post-add
    Created on : Feb 13, 2012, 10:44:54 PM
    Author     : PhucAn
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="fck" uri="http://java.fckeditor.net" %>
<%@include file="../handler/post-add-action.jsp" %>
<!DOCTYPE html>
<html>
    <head>      
    </head>
    <body>
        
        <form action="#" method="post">
            <table class="form-table" width="100%">
                <tr>
                    <td>Category:</td>
                    <td>
                        
                        <select name="category">
                            <c:forEach var="cate" items="${cateList}">
                            <option value="${cate.id}">${cate.name} - ${cate.description}</option>
                            </c:forEach>
                        </select>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>Title:</td>
                    <td><input type="text" name="title"/></td>
                    <td></td>
                </tr>
                <tr>
                    <td>Content</td>
                    <td>
                        <fck:editor instanceName="defaultEditor" basePath="/fckeditor/"
                                    height="300" inputName="content" toolbarSet="Default"/> 
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>State:</td>
                    <td><input type="checkbox" id="is-public" name="is-public"/></td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td><input type="submit" name="add" value="Save"/></td>
                    <td></td>
                </tr>
            </table>
        </form>
    </body>
</html>
